]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
autorunManager: Fix another regression
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 5 Sep 2012 16:46:55 +0000 (13:46 -0300)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 5 Sep 2012 16:47:01 +0000 (13:47 -0300)
We may not have a resident source to destroy if no mounts are found.

js/ui/components/autorunManager.js

index cf75cb11cdea5793dbf8874bf774c55727b1552a..38f93bc8cc2befe782a3c950e6ead88a8a7f0bbf 100644 (file)
@@ -169,7 +169,8 @@ const AutorunManager = new Lang.Class({
     },
 
     disable: function() {
-        this._residentSource.destroy();
+        if (this._residentSource)
+            this._residentSource.destroy();
         this._volumeMonitor.disconnect(this._mountAddedId);
         this._volumeMonitor.disconnect(this._mountRemovedId);
     },